package factory.simplefactory;

public class Client {

    public static void main(String[] args) {

        //直接去工厂要，并不是自己去创建
        Apple apple = (Apple) FruitFactory.getFruit("苹果");
        Orange orange = (Orange) FruitFactory.getFruit("橙子");
    }
}
